package com.net.common.enums;

import com.net.common.enums.base.StringEnum;

/**
 * @author  on 2017/6/8.
 * 异步任务执行进度的情况.
 */
public enum ProgressStatus implements StringEnum<ProgressStatus> {
    WAIT("wait", "任务正在等待处理"),
    IN_PROGRESS("in_progress", "正在处理中"),
    SUCCESS("success", "处理完成"),
    FAILED("failed", "任务处理失败");

    private String status;

    private String desc;

    ProgressStatus(String status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return status;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
